package br.com.gaacorp.sai.webapp.action;

import java.io.Serializable;
import java.util.List;

import br.com.gaacorp.sai.webapp.action.BasePage;
import br.com.gaacorp.sai.model.Campus;
import br.com.gaacorp.sai.service.GenericManager;

public class CampusList extends BasePage implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -1329292908293021152L;
	private GenericManager<Campus, Long> campusManager;

    public void setCampusManager(GenericManager<Campus, Long> campusManager) {
        this.campusManager = campusManager;
    }

    public CampusList() {
        setSortColumn("campusId"); // sets the default sort column
    }

    public List getCampuss() {
        return sort(campusManager.getAll());
    }
}

